﻿<%@ Page Language="C#" MasterPageFile="~/Template.master" AutoEventWireup="true" CodeFile="ChiTietGioHoa.aspx.cs" Inherits="ChiTietGioHoa" Title="Giỏ Hoa" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    .style1
    {
        width: 100%;
    }
    .style2
    {
        height: 21px;
    }
    .style3
    {
        height: 21px;
        width: 339px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="style1">
    <tr>
        <td>
            <asp:MultiView ID="MultiView1" runat="server">
                <asp:View ID="View1" runat="server">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        DataKeyNames="mahoa,soluong,giahoa" onload="GridView1_Load" 
                        onrowcancelingedit="GridView1_RowCancelingEdit" 
                        onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing" 
                        onrowupdating="GridView1_RowUpdating" Width="531px">
                        <Columns>
                            <asp:BoundField DataField="TenHoa" HeaderText="Loại hoa" ReadOnly="True" />
                            <asp:BoundField DataField="GiaHoa" HeaderText="Giá" ReadOnly="True" />
                            <asp:BoundField DataField="soluong" HeaderText="Số lượng" />
                            <asp:BoundField DataField="thanhtien" HeaderText="Thành tiền" ReadOnly="True" />
                            <asp:CommandField CancelText="HỦy" EditText="Sửa" ShowEditButton="True" 
                                UpdateText="Cập nhật" />
                            <asp:CommandField DeleteText="Xóa" ShowDeleteButton="True" />
                        </Columns>
                    </asp:GridView>
                    <asp:Label ID="Label1" runat="server" Text="Tổng tiền: "></asp:Label>
                    &nbsp;&nbsp;
                    <asp:Label ID="lblthanhtien" runat="server"></asp:Label>
                    <br />
                    <asp:LinkButton ID="lbtnthanhtoan" runat="server" onclick="lbtnthanhtoan_Click">Thanh 
                    toán</asp:LinkButton>
                </asp:View>
                <br />
                <asp:View ID="View2" runat="server">
                    <asp:Label ID="Label2" runat="server" Font-Size="14pt" ForeColor="#990033" 
                        Text="Không có hoa nào trong giỏ."></asp:Label>
                </asp:View>
            </asp:MultiView>
        </td>
    </tr>
    </table>
</asp:Content>

